﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BusinessLayer;
using BusinessObject;
namespace RestHouseReservation
{
    public partial class ConfirmReservation : System.Web.UI.Page
    {
        public int length = 0;
        public bool flag = false;
        public int abc = 0;
        ReservationLogic logic = new ReservationLogic();
        public List<ReservationDao> List = new List<ReservationDao>();
        protected void Page_Load(object sender, EventArgs e)
        {
            List = logic.PendingRequests();
            length = List.Count();
            flag = logic.CheckRooms();
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            string room = DropDownList1.SelectedValue;
            string request = DropDownList2.SelectedValue;
            logic.ConformReservation(room, request);
            Server.Transfer("ConfirmReservation.aspx");
        }
    }
}